package com.corbsoft.estels.grafics;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;

public class Panell extends SurfaceView implements SurfaceHolder.Callback {       
    
    public Panell(Context context, AttributeSet attrs) {
                super(context, attrs);
                // TODO Auto-generated constructor stub
            getHolder().addCallback(this);
  
            setFocusable(true);
            Log.i("ESTELS", "En el constructor de Panell");
        }

    public void surfaceChanged(SurfaceHolder holder, int format, int width,
            int height)
    {
        Log.i("ESTELS", "En el surfaceChanged de Panell");
        // TODO Auto-generated method stub
        
    }

    public void surfaceCreated(SurfaceHolder holder)
    {
        // TODO Auto-generated method stub
        Log.i("ESTELS", "En el surfaceCreated de Panell");

        
    }

    public void surfaceDestroyed(SurfaceHolder holder)
    {
        // TODO Auto-generated method stub
        Log.i("ESTELS", "En el surfaceDestroyed de Panell");
        
    }

       
    
    @Override
    public void onDraw(Canvas canvas) {
           
            Paint paint = new Paint();
           
            Log.i("ESTELS", "En el onDraw de Panell");
            canvas.drawColor(Color.BLACK);
            canvas.drawCircle(200, 200, 50, paint);
            
           
    }
    
  }
        